﻿using System;

namespace BizElements.TemplateEngine
{
    /// <summary>Compiler settings for template expression.</summary>
    public sealed class CodeDomProviderInfo
    {
        /// <summary>Gets C# 3.5 compiler.</summary>
        public static CodeDomProviderInfo DefaultCompiler = new CodeDomProviderInfo() 
        { 
            AssemblyString = "System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089", 
            ClassName = "Microsoft.CSharp.CSharpCodeProvider", 
            CompilerVersion = "v3.5" 
        };

        /// <summary>Gets the name of assembly that contains the compiler/CodeDomProvider for programming language used for template expressions.</summary>
        public string AssemblyString { get; internal set; }

        /// <summary>Gets the name of compiler/CodeDomProvider class for programming language used for template expressions.</summary>
        public string ClassName { get; internal set; }

        /// <summary>Gets compiler version required to compile template expressions.</summary>
        public string CompilerVersion { get; internal set; }
    }
}
